package com.danskin.wechat.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.danskin.wechat.dao.VipOptionDao;
import com.danskin.wechat.entity.VipOption;
import com.danskin.wechat.service.VipOptionService;

@Service
public class VipOptionServiceImpl implements VipOptionService{
	@Autowired
	private VipOptionDao vipOptionDao;

	@Override
	public List<VipOption> getVipOption() {
		// TODO Auto-generated method stub
		return vipOptionDao.getVipOption();
	}

	@Override
	public void deleteVipOption(String id) {
		// TODO Auto-generated method stub
		vipOptionDao.deleteVipOption(id);
	}

	@Override
	public List<VipOption> queryVipOption(String id) {
		// TODO Auto-generated method stub
		return vipOptionDao.queryVipOption(id);
	}

	@Override
	public void insertAllVipOption(List<VipOption> list) {
		// TODO Auto-generated method stub
		vipOptionDao.insertAllVipOption(list);
	}

	@Override
	public void insertVipOption(VipOption vipOption) {
		// TODO Auto-generated method stub
		vipOptionDao.insertVipOption(vipOption);
	}

	@Override
	public VipOption selectByPrimaryKey(Integer id) {
		VipOption option = vipOptionDao.selectByPrimaryKey(id);
		return option;
	}

	@Override
	public int updateByPrimaryKeySelective(VipOption vipOption) {
		int i = vipOptionDao.updateByPrimaryKeySelective(vipOption);
		return i;
	}
}
